#include <bits/stdc++.h>
using namespace std;
#define ll long long
    int r[100100];
    bool bb[100100];
int main(){
    memset(r,0x3f,sizeof(r));
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin>>n;
    for(int i=0;i<n;i++)
        cin>>r[i];
    sort(r,r+n);

    //cout<<n<<endl;
    //for(int i=0;i<n;i++)
    //    cout<<r[i]<<' ';

    int i=0,j=1;
    int died=0;

    while(j<n){
        while(r[j]<=r[i])j++;
        if(j>=n)break;
        died++;
        j++;
        i++;
    }
    cout<<n-died;
    return 0;
}
